import { NgModule } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { BrowserModule } from '@angular/platform-browser'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { HttpClientModule } from '@angular/common/http'
import {  JsonpModule } from '@angular/http'; 
import {
  NgZorroAntdMobileModule,
  ToastComponent,
  ModalServiceComponent,
  ActionSheetComponent
} from 'ng-zorro-antd-mobile'
import { router } from './app.route'
import { PublicModule } from './common/public.module'

import { AppComponent } from './app.component'
import { LoginComponent } from './pages/login/login.component'
import { RegisterComponent } from './pages/register/register.component'
import { RegisterPswComponent } from './pages/register-psw/register-psw.component'

@NgModule({
  imports: [
    FormsModule,
    BrowserModule,
    BrowserAnimationsModule,
    HttpClientModule,
    NgZorroAntdMobileModule,
    router,
    PublicModule,
    JsonpModule
  ],
  declarations: [AppComponent, LoginComponent, RegisterComponent, RegisterPswComponent],
  bootstrap: [AppComponent],
  entryComponents: [ToastComponent, ModalServiceComponent, ActionSheetComponent]
})
export class AppModule {}
